﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

[Table("QHSE_XY_VIOLATION_USER")]
public class QHSESysViolationUser : EntityBase
{
    public QHSESysViolationUser()
    {
    }
    /// <summary>
    /// 违章人员ID
    /// </summary>
    [MaxLength(32)]
    [Key]
    [Column("VIOLATION_USER_ID")]
    public string ViolationUserId { get; set; }
    /// <summary>
    /// 违章人员单位名称
    /// </summary>
    [MaxLength(100)]
    [Column("VIOLATION_USER_DEPART")]
    public string? ViolationUserDepart { get; set; }

    /// <summary>
    /// 违章岗位
    /// </summary>
    [MaxLength(32)]
    [Column("POSITION")]
    public string Position { get; set; }

    /// <summary>
    /// 年龄
    /// </summary>
    [MaxLength(32)]
    [Column("AGE")]
    public string Age { get; set; }

    /// <summary>
    /// 工龄
    /// </summary>
    [MaxLength(32)]
    [Column("WORK_YEARS")]
    public string WorkYears { get; set; }

    /// <summary>
    /// 用工性质
    /// </summary>
    [MaxLength(32)]
    [Column("EMPLOYEE_TYPE")]
    public string EmployeeType { get; set; } = "";

    /// <summary>
    /// 违章人员工号
    /// </summary>
    [MaxLength(100)]
    [Column("VIOLATION_USER_ERP")]
    public string? Erp { get; set; }
}
